package com.atguigu.springcloud.alibaba.service;

import com.atguigu.springcloud.entities.CommonResult;
import com.atguigu.springcloud.entities.Notice;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName NoticeService
 * @Desscription
 * @Author _HeiShuai
 * @Date 2023/1/12 15:20
 * @Version 1.0
 **/
@FeignClient(value = "seata-notice-service")
public interface NoticeService {

    @GetMapping("/notice/create")
    CommonResult create(@RequestParam(value = "userId") Long userId, @RequestParam(value = "content") String content);

}
